<?php
class HelpAction extends Action{
	public function _initialize(){
		if(!isset($_SESSION["pid"])){
			if(!isset($_COOKIE["pid"])){
				$this->redirect("partner/Public/login");
			}else{
				$_SESSION["pid"] = $_COOKIE["pid"];
				$_SESSION["name"] = M("Partner")->where("pid = ".$_SESSION["pid"])->find()["name"];
			}
		}
		$this->assign("mod","help");
	}
	public function index(){
		$str =  "<script>

$(function () {
	
	$('.faq-list').goFaq ();
	
});

</script>
	";
		$this->assign("str",$str);
		$this->display("help_index");
	}
}